import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/home.vue'
import Layout from '../views/Layout/layout.vue'
import Long from '../views/Long/long.vue'
import About from '../views/About/about.vue'
const Destination =()=>import('../views/destination/inde.vue')
const Community =()=>import('../views/community/inde.vue')
const Assistant =()=>import('../views/assistant/inde.vue')


Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'layout',
    component: Layout,
    children: [
      {
        path: '/',
        name: 'home',
        component: Home
      },
      {
        path: '/about',
        name: 'about',
        component: About
      },
      {
        path: '/destination',
        name: 'destination',
        component: Destination
      },
      {
        path: '/community',
        name: 'community',
        component: Community
      },
      {
        path: '/assistant',
        name: 'assistant',
        component: Assistant
      },
   
    ]
  },
  {
    path: '/',
    name: 'Long',
    component: Long
  },

]

const router = new VueRouter({
  routes
})

export default router
